package com.ks.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ProductDto implements Serializable {

	private static final long serialVersionUID = -3997909510224928216L;
	private Integer id;
	private String name = "";
	private Double price = 0.0;
	private Double downPayment = 0.0;
	private Double monthlyPayment = 0.0;
	private Integer hasPublic = 1;
	private Integer hot = 1;
	private Integer showIndex = 1;
	private String imgPath;
	private List<ImgDto> imgDtos = new ArrayList<ImgDto>();
	private Integer brandId;
	private String brandName;
	private Integer classifyId;
	private String classifyName;
	private String content = "";
	private String ImgId;
	private String master;
	private String bag;
	private String gcard;
	private String position;
	private String recommend;
	private Integer showIndexClassify;

	public Integer getShowIndexClassify() {
		return showIndexClassify;
	}

	public void setShowIndexClassify(Integer showIndexClassify) {
		this.showIndexClassify = showIndexClassify;
	}

	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	public String getMaster() {
		return master;
	}

	public void setMaster(String master) {
		this.master = master;
	}

	public String getBag() {
		return bag;
	}

	public void setBag(String bag) {
		this.bag = bag;
	}

	public String getGcard() {
		return gcard;
	}

	public void setGcard(String gcard) {
		this.gcard = gcard;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getRecommend() {
		return recommend;
	}

	public void setRecommend(String recommend) {
		this.recommend = recommend;
	}

	private String salesLink;

	// view
	private String cpu = "";
	private String ram = "";
	private String rom = "";
	private String screenSize = "";
	private String resolution = "";
	private String camera = "";
	private String card = "";
	private String network = "";
	private String createTime = ""; // 发布日期
	private List<String> imgs;

	public String getSalesLink() {
		return salesLink;
	}

	public void setSalesLink(String salesLink) {
		this.salesLink = salesLink;
	}

	public String getCpu() {
		return cpu;
	}

	public void setCpu(String cpu) {
		this.cpu = cpu;
	}

	public String getRam() {
		return ram;
	}

	public void setRam(String ram) {
		this.ram = ram;
	}

	public String getRom() {
		return rom;
	}

	public void setRom(String rom) {
		this.rom = rom;
	}

	public String getScreenSize() {
		return screenSize;
	}

	public void setScreenSize(String screenSize) {
		this.screenSize = screenSize;
	}

	public String getResolution() {
		return resolution;
	}

	public void setResolution(String resolution) {
		this.resolution = resolution;
	}

	public String getCamera() {
		return camera;
	}

	public void setCamera(String camera) {
		this.camera = camera;
	}

	public String getCard() {
		return card;
	}

	public void setCard(String card) {
		this.card = card;
	}

	public String getNetwork() {
		return network;
	}

	public void setNetwork(String network) {
		this.network = network;
	}

	/**
	 * @return the createTime
	 */
	public String getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 *            the createTime to set
	 */
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public List<String> getImgs() {
		return imgs;
	}

	public void setImgs(List<String> imgs) {
		this.imgs = imgs;
	}

	// public String getImgPaths() {
	// return imgPaths;
	// }
	//
	// public void setImgPaths(String imgPaths) {
	// this.imgPaths = imgPaths;
	// }

	public String getImgId() {
		return ImgId;
	}

	public void setImgId(String imgId) {
		ImgId = imgId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getClassifyName() {
		return classifyName;
	}

	public void setClassifyName(String classifyName) {
		this.classifyName = classifyName;
	}

	public List<ImgDto> getImgDtos() {
		return imgDtos;
	}

	public void setImgDtos(List<ImgDto> imgDtos) {
		this.imgDtos = imgDtos;
	}

	public Integer getClassifyId() {
		return classifyId;
	}

	public void setClassifyId(Integer classifyId) {
		this.classifyId = classifyId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getDownPayment() {
		return downPayment;
	}

	public void setDownPayment(Double downPayment) {
		this.downPayment = downPayment;
	}

	public Double getMonthlyPayment() {
		return monthlyPayment;
	}

	public void setMonthlyPayment(Double monthlyPayment) {
		this.monthlyPayment = monthlyPayment;
	}

	public Integer getHasPublic() {
		return hasPublic;
	}

	public void setHasPublic(Integer hasPublic) {
		this.hasPublic = hasPublic;
	}

	public Integer getHot() {
		return hot;
	}

	public void setHot(Integer hot) {
		this.hot = hot;
	}

	public Integer getShowIndex() {
		return showIndex;
	}

	public void setShowIndex(Integer showIndex) {
		this.showIndex = showIndex;
	}

	public Integer getBrandId() {
		return brandId;
	}

	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ProductDto [id=" + id + ", name=" + name + ", price=" + price + ", downPayment=" + downPayment
				+ ", monthlyPayment=" + monthlyPayment + ", hasPublic=" + hasPublic + ", hot=" + hot + ", showIndex="
				+ showIndex + ", imgPath=" + imgPath + ", imgDtos=" + imgDtos + ", brandId=" + brandId + ", classifyId="
				+ classifyId + ", classifyName=" + classifyName + ", content=" + content + ", ImgId=" + ImgId
				+ ", master=" + master + ", bag=" + bag + ", gcard=" + gcard + ", position=" + position + ", recommend="
				+ recommend + ", salesLink=" + salesLink + ", cpu=" + cpu + ", ram=" + ram + ", rom=" + rom
				+ ", screenSize=" + screenSize + ", resolution=" + resolution + ", camera=" + camera + ", card=" + card
				+ ", network=" + network + ", createTime=" + createTime + ", imgs=" + Arrays.toString(imgs.toArray())
				+ "]";
	}

}
